# coding:utf-8
import pathlib,sys
import pytz,enum

TZ_shanghai = pytz.timezone('Asia/Shanghai')

ROOTDIR = str(pathlib.Path(__file__).parent.parent)
IS_WINDOWS = sys.platform == 'win32'

class RoleEnum(enum.Enum):
    """角色"""
    root    = "ROOT用户"
    admin   = "管理员用户"
    common  = "普通用户"

class PermissionEnum(enum.Enum):
    """权限"""
    C = "增"
    R = "查"
    U = "改"
    D = "删"


